// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DesignChange generated by hbm2java
 */
@Entity
@Table(name = "design_change", catalog = "magento")
public class DesignChange implements java.io.Serializable {

	private Integer designChangeId;
	private CoreStore coreStore;
	private String design;
	private Date dateFrom;
	private Date dateTo;

	public DesignChange() {
	}

	public DesignChange(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	public DesignChange(CoreStore coreStore, String design, Date dateFrom,
			Date dateTo) {
		this.coreStore = coreStore;
		this.design = design;
		this.dateFrom = dateFrom;
		this.dateTo = dateTo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "design_change_id", unique = true, nullable = false)
	public Integer getDesignChangeId() {
		return this.designChangeId;
	}

	public void setDesignChangeId(Integer designChangeId) {
		this.designChangeId = designChangeId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "design")
	public String getDesign() {
		return this.design;
	}

	public void setDesign(String design) {
		this.design = design;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "date_from", length = 10)
	public Date getDateFrom() {
		return this.dateFrom;
	}

	public void setDateFrom(Date dateFrom) {
		this.dateFrom = dateFrom;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "date_to", length = 10)
	public Date getDateTo() {
		return this.dateTo;
	}

	public void setDateTo(Date dateTo) {
		this.dateTo = dateTo;
	}

}
